package com.collection;

/**
 * 节点类
 *
 * @author jiangbang
 * @date 2016/5/27
 */
public class Node {

     Node previous;  //上一个节点
     Object Obj;       //本身
     Node next;      //下一个节点

    public Node(Node previous, Object obj, Node next) {
        super();
        this.previous = previous;
        Obj = obj;
        this.next = next;
    }

    public Node() {
    }

    public Node getNext() {
        return next;
    }

    public void setNext(Node next) {
        this.next = next;
    }

    public Object getObj() {
        return Obj;
    }

    public void setObj(Object obj) {
        Obj = obj;
    }

    public Node getPrevious() {
        return previous;
    }

    public void setPrevious(Node previous) {
        this.previous = previous;
    }
}
